Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redact nested lists inside structs #77

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

hogiyogi597
Copy link
Contributor

Sometimes, structs will have a list of fields that could be loaded from an Ecto preload. These should be redacted just like a nested struct would be.

The current behavior is a CaseClauseError:

** (CaseClauseError) no case clause matching: [%SomeStruct{id: 123, some_field: "some_field"}]

@hogiyogi597 hogiyogi597 requested a review from woylie as a code owner April 19, 2024 20:26
@woylie woylie merged commit 3a0d2c4 into woylie:main Apr 19, 2024
14 checks passed
@woylie
Copy link
Owner

woylie commented Apr 19, 2024

Thank you!

@hogiyogi597
Copy link
Contributor Author

Thanks for looking at this @woylie ! We just ran into the need for the redacted_fields stuff in LetMe and it has turned out great. Thanks for this awesome library!

Also, do you know when you're planning on releasing a new version for the library that would include this fix?

@woylie
Copy link
Owner

woylie commented Apr 22, 2024

Hey @hogiyogi597, I just released 1.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants